package com.dyh.dao;

import com.dyh.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserDao {

    int addUser(User user);
    int deleteUser(int id);
    int updateUser(User user);
    List<User> queryUserList();
    User queryUserById(int id);
    User queryUserByName(String name);
    int queryUserNum();

}
